//
//  JTFollowViewController.m
//  百思不得姐
//
//  Created by sun lei on 16/11/17.
//  Copyright © 2016年 BeiJingWangDianJieTong. All rights reserved.
//

#import "JTFollowViewController.h"
#import "JTRecommendFollowViewController.h"
#import "JTLoginRegisterViewController.h"
#import "JTTempView.h"

@interface JTFollowViewController ()

/** 文本框 */
@property (nonatomic, weak) UITextField *textField;
@end

@implementation JTFollowViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.view setBackgroundColor:JTCommonBgColor];
    
    // 标题(不建议使用self.title属性)
    [self.navigationItem setTitle:@"我的关注"];

    // 左边
    [self.navigationItem setLeftBarButtonItem:[UIBarButtonItem jt_itemWithImage:@"friendsRecommentIcon" highLightedImage:@"friendsRecommentIcon-click" target:self action:@selector(followClick:)]];
    
    /*
    JTTempView *temp = [[JTTempView alloc] init];
    [temp setBackgroundColor:JTRandomColor];
    [temp setFrame:CGRectMake(100, 100, 100, 100)];
    [self.view addSubview:temp];
    
    [temp setFrame:CGRectMake(100, 100, 150, 250)];
     */
}

- (void)followClick:(UIButton *)sender {
    
    JTLogFunc
    
    JTRecommendFollowViewController *test = [[JTRecommendFollowViewController alloc] init];
    [self.navigationController pushViewController:test animated:YES];
}

- (IBAction)loginRegister:(UIButton *)sender {
    
    JTLoginRegisterViewController *loginRegister = [[JTLoginRegisterViewController alloc] init];
    
//    [loginRegister setModalTransitionStyle:UIModalTransitionStyleCrossDissolve];
    
    [self presentViewController:loginRegister animated:YES completion:nil];
}

@end
